//atof 直接转换str字符串为double型并返回数据
#include <stdio.h>
#include <stdlib.h>

int main() {
    char p[] = "  123.4567  ";
    double f;
     f=atof(p);
    printf("%f\n", f);
    return 0;
}
